package config


//
type Config struct {
	DB      DB
	Redis   Redis
	Mongodb Mongodb
}
//配置实体
//
type Redis struct {
	NetType  string `toml:"netType"`
	Addr     string `toml:"addr"`
	Password string `toml:"password"`
}

type DB struct {
	Host     string       `json:"host"`
	Port     string        `json:"port"`
	User     string       `json:"user"`
	Password string   `json:"password"`
	DbName   string     `json:"dbName"`
}

type Mongodb struct {
	Dsn      string `json:"dsn"`
	Password string   `json:"password"`
	DbName   string     `json:"dbName"`
}
